package net.lab1024.sa.admin.config;

import net.lab1024.sa.admin.module.open.heartbeat.domain.DeviceHeartbeatReportForm;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

@Configuration
public class QueueConfig {

    @Bean
    public BlockingQueue<DeviceHeartbeatReportForm> heartbeatBlockingQueue() {
        return new LinkedBlockingQueue<>();
    }
}
